package org.mq.mymq.common.event;


import org.mq.mymq.common.event.model.Event;

/**
 * @ClassName Listener
 * @Description 监听器
 * @Author jiarong_ye
 * @Date 2025/6/19 12:44
 * @Version 1.0
 */
public interface Listener <E extends Event> {
    /**
     * 回调通知
     *
     * @param event
     */
    void onReceive(E event) throws Exception;
}
